<template>
  <BasicTable
    title="基础示例"
    titleHelpMessage="温馨提醒"
    :columns="columns"
    :dataSource="data"
    :loading="loading"
    showTableSetting
    useSearchForm
    :formConfig="formConfig"
  >
    <template #toolbar>
      <a-button type="primary">新增</a-button>
      <a-button type="primary" danger>批量删除</a-button>
    </template>
  </BasicTable>
</template>
<script lang="ts" setup>
  import { ref } from 'vue';
  import { BasicTable } from '@/components/Table';
  import { formConfig, columns, getBasicData } from './data';

  const loading = ref(false);
  const data = getBasicData();
</script>
